from pydantic import BaseModel


class Evaluate(BaseModel):
    profit_rate: float


    @staticmethod
    def cal_profit_rate(start_cash, end_cash):
        return float(end_cash - start_cash) / float(start_cash)